package com.qcby.xmdemo.Controller;

import com.qcby.xmdemo.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BusinessController {

    @Autowired
    private BusinessService businessService;

    @GetMapping("/process")
    public String process(@RequestParam String userId) {
        businessService.processRequest(userId);
        return "Request received for user: " + userId;
    }
}
